// index.js
// 获取应用实例
const app = getApp()

Page({
  data:{
  pages:[
      {name:'01-注册页面',path:"/pages/01_register_page/test"},
      {name:'02-常见组件',path:"/pages/02_componts_cpns/index"},
      {name:'03-wxss',path:"/pages/03-learn-wxss/index"},
      {name:'04-wxml',path:"/pages/04_learn_wxml/index"},
      {name:'05-wxs',path:"/pages/05_wxs/index"},
      {name:'06-event',path:"/pages/06_learn_event/index"},
      {name:'07-自定义组件',path:"/pages/07_learn_cpns/index"},
      {name:'08-自定义组件-slot',path:"/pages/08_learn_slot/index"},
      {name:'09-api-网络请求',path:"/pages/09_learn_apiserver/index"},
      {name:'10_learn_api',path:"/pages/10_learn_api/index"},
      {name:'11_learn_nav',path:"/pages/11_learn_nav/index"},
      {name:'12_learn_login',path:"/pages/12_learn_login/index"},
    ] 
  },
  onBtnClick(event){
    // console.log('btnclick',event);
    const path=event.target.dataset.item.path
    wx.navigateTo({
      url: path
    })
  }
})
